home *** CD-ROM | disk | FTP | other *** search
/ Computer Inter@ctive 16 / Computer Interactive cdrom 16 - dic 98.iso / zdnetit / content / ARACHE.ZIP / MIME.CFG < prev    next >
Encoding:
Text File  |  1998-10-07  |  9.8 KB  |  211 lines

  1. ;--------------------------------------------------------------------------
  2. ;Arachne understands four basic file types: HTM, GIF, BMP and TXT. Only
  3. ;GIF and BMP can be inlined using <IMG> tag. If the file has different
  4. ;extension than HTM, GIF or TXT and in the following conversion table is no
  5. ;corresponding action defined, Arachne offers moving of downloaded file
  6. ;from CACHE directory (or of local file) to DOWNLOAD directory.
  7. ;
  8. ;For conversion to supported format is used macro "ext1>ext2|command",
  9. ;for calling external viewer macro "extension|command". See syntax rules
  10. ;(at the end of this file.)
  11. ;--------------------------------------------------------------------------
  12. [MIME]
  13. text/html                HTM
  14. text/plain               TXT
  15. image/gif                GIF
  16. image/jpeg               JPG>BMP|DJPEG.EXE -bmp -colors 256 $1 $2
  17. audio/x-wav              WAV|PLANY.EXE $1
  18. audio/basic              AU|PLANY.EXE $1
  19. ;
  20. ;My pseudo jpeg mime type - usage depends on ARACHNE.CFG...
  21. fastimage/jpeg            JPG>BMP|DJPEG.EXE -bmp $1 $2
  22. ;
  23. ;Replace image/jpeg config like with this to save disk space:
  24. ;image/jpeg               JPG>GIF|DJPEG.EXE $1 $2
  25. ;
  26. ;Disable (comment out) this, if you want use Arachne on PC XT or PC AT:
  27. image/png                PNG>BMP|[200]JPNG2BMP.EXE $1 $2
  28. image/x-png              PNG>BMP|[200]JPNG2BMP.EXE $1 $2
  29. ;
  30. ;defaultly not distributed APMs:
  31. video/mpeg               MPG>HTM|APM.EXE -h http://www.naf.cz/arachne/apm/mpeg>$2
  32. video/x-msvideo          AVI>HTM|APM.EXE -h http://www.multimediaware.com/qv/qv>$2
  33. video/quicktime          MOV>HTM|APM.EXE -h http://www.multimediaware.com/qv/qv>$2
  34. audio/mpeg               MP3>HTM|APM.EXE -h http://www.multimediaware.com/qv/qv>$2
  35. audio/x-mpeg             MP3>HTM|APM.EXE -h http://www.multimediaware.com/qv/qv>$2
  36. audio/mpeg3              MP3>HTM|APM.EXE -h http://www.multimediaware.com/qv/qv>$2
  37. audio/x-mpeg3            MP3>HTM|APM.EXE -h http://www.multimediaware.com/qv/qv>$2
  38. application/postscript   PS>HTM|APM.EXE -h http://www.naf.cz/arachne/apm/gs>$2
  39. application/mac-binhex40 >HTM|[100]type binhex.htm>$2
  40. ;
  41. ;I will save this with correct extension:
  42. text/enriched            RTF
  43. text/richtext            RTF
  44. image/x-bitmap           BMP
  45. image/tiff               TIF
  46. image/x-xbitmap          XBM
  47. message/rfc822           CNM
  48. message/rfc822           SNT
  49. message/rfc822           MES
  50. message/rfc822           TBS
  51. message/partial          CNM
  52. message/news             NWS
  53. application/rtf          RTF
  54. application/wordperfect5.1 WPD
  55. application/pdf          PDF
  56. application/msword       DOC
  57. application/zip          ZIP
  58. application/octet-stream EXE
  59. application/octet-stream COM
  60. application/x-zipped     ZIP
  61. application/zip          ZIP
  62. ;
  63. ;Arachne-specific:
  64. application/x-arachne-package APM>HTM|APM.EXE -u $u $1>$2
  65. application/x-netdos-exe EXE|@APM.EXE -v $u $1
  66. application/x-netdos-com COM|@APM.EXE -v $u $1
  67. ;--------------------------------------------------------------------------
  68. ;Pseudomime types - "Arachne extensions to MIME" :-)
  69. ;--------------------------------------------------------------------------
  70. [ARACHNE]
  71. gopher/0   TXT
  72. gopher/1   GOP>HTM|[100]GOPH2HTM.EXE $1>$2
  73. gopher/5   ZIP
  74. gopher/6   UUE
  75. gopher/7   GOP>HTM|[100]GOPH2HTM.EXE -s>$2
  76. gopher/g   GIF
  77. finger/out TXT
  78. news/list  TXT
  79. ftp/list   FTP>HTM|[110]WWWMAN.EXE -f $1>$2
  80. ;--------------------------------------------------------------------------
  81. ;External internet protocols - any new protocol can be declared using this:
  82. ;--------------------------------------------------------------------------
  83. external/telnet |@APM.EXE -t http://www.naf.cz/arachne/apm/telnet
  84. external/irc    |@APM.EXE -t http://www.naf.cz/arachne/apm/irc
  85. ;external/ftp    |@ftp.exe
  86. ;external/gopher |@minuet.exe $u
  87. ;--------------------------------------------------------------------------
  88. ;Local files and DGI:
  89. ;--------------------------------------------------------------------------
  90. ;Try to uncomment following, and you will have MSIE 9.0 style desktop ;-)
  91. ;(note: extension .com must preceed .c, etc.)
  92. ;file/.exe |@$1
  93. ;file/.com |@$1
  94. ;file/.bat |@$1
  95. ;
  96. ;Other files and DGI scripts:
  97. file/*.mes           >HTM|[110]MAILMAN.EXE -i $1>$2
  98. fastfile/*.mes       >HTM|[110]MAILMAN.EXE -i $1>$2
  99. file/*               >HTM|[110]WWWMAN.EXE -d $1>$2
  100. fastfile/*           >HTM|[110]WWWMAN.EXE -l $1>$2
  101. file/cacheindex.dgi  >HTM|[110]WWWMAN.EXE -c $c>$2
  102. file/history.dgi     >HTM|[110]WWWMAN.EXE -h $h>$2
  103. file/wwwmanset.dgi   >HTM|[110]WWWMAN.EXE -s $S>$2
  104. file/galery.dgi      >HTM|[110]WWWMAN.EXE -g $S>$2
  105. file/.cnm            >HTM|[120]MAILMAN.EXE $1>$2
  106. file/.mes            >HTM|[120]MAILMAN.EXE $1>$2
  107. file/.tbs            >HTM|[120]MAILMAN.EXE $1>$2
  108. file/.snt            >HTM|[120]MAILMAN.EXE $1>$2
  109. file/inbox.dgi       >HTM|[135]MAILMAN.EXE -i $M*.cnm>$2
  110. file/outbox.dgi      >HTM|[135]MAILMAN.EXE -i $M*.tbs>$2
  111. file/readmail.dgi    >HTM|[135]MAILMAN.EXE -i $M*.mes>$2
  112. file/sentmail.dgi    >HTM|[135]MAILMAN.EXE -i $M*.snt>$2
  113. file/reply.dgi       >HTM|[120]MAILMAN.EXE -r -s=$S>$2
  114. file/resend.dgi      >HTM|[120]MAILMAN.EXE -e -s=$S>$2
  115. file/forward.dgi     >HTM|[120]MAILMAN.EXE -f -s=$S>$2
  116. file/delmail.dgi     >HTM|[135]MAILMAN.EXE -d -s=$S>$2
  117. file/markmail.dgi    >HTM|[135]MAILMAN.EXE -m -s=$S>$2
  118. file/test.dgi        >TXT|[100]COPY $q $2>NUL
  119. file/echo.dgi        >TXT|[100]ECHO $s>$2
  120. file/mem.dgi         >HTM|MEM|fixmem>$2
  121. file/memc.dgi        >HTM|MEM /C|fixmem /C>$2
  122. file/wizard.dgi      >HTM|@wizard.exe $2
  123. file/wizardm.dgi     >HTM|wizard.exe -m $2
  124. file/grep.dgi        >TXT|FIND "$s" *.htm /S>$2
  125. file/pktstat.dgi     >TXT|[100]PKTSTAT.COM>$2
  126. file/unpackklos.dgi  |@setup.bat -k
  127. file/configklos.dgi  |@PPPMENU.EXE
  128. file/dosshell.dgi    |@echo Type 'EXIT' to return to Arachne...\n%%COMSPEC%%
  129. file/printprn.dgi    |[100]TYPE _4prt.txt>PRN
  130. file/printcom.dgi    |PRINT.COM _4prt.txt
  131. file/psprintprn.dgi  |[100]TYPE _4prt.ps>PRN
  132. file/psprintcom.dgi  |PRINT.COM _4prt.ps
  133. file/printqpad.dgi   >HTM|COPY $equickpad.txt _4prt.txt>NUL\nTYPE $eprint.ah>$2
  134. file/export.dgi      |[100]COPY _4prt.txt $s>NUL
  135. file/exportps.dgi    |[100]COPY _4prt.ps $s>NUL
  136. file/.acf            |COPY $1 ARACHNE.CFG\narachne.bat
  137. file/.bhx            >HTM|[100]type $ebinhex.htm>$2
  138. file/.fil            >TXT|[100]DIR $l>$2
  139. file/.apm            >HTM|APM.EXE -u $u $1>$2
  140. file/apm.dgi         >HTM|[100]copy $eapm.htp+$esystem\\apm.db\\*.htm $2>NUL
  141. file/.ook |@COPY $1 $$roura3.bat>NUL\nCALL $$roura3.bat
  142. File/.eek |@COPY $1 $$roura3.bat>NUL\nCALL $$roura3.bat $i $n $g $x
  143. file/.htt            HTM
  144. file/.htp            HTM
  145. file/.ah             HTM
  146. file/.gop            TXT
  147. file/.ftp            TXT
  148. file/edithotlist.dgi >HTM|[100]HOTLSMAN.EXE $s>$2
  149. file/makehotlist.dgi >HTM|[100]HOTLSMAN.EXE -q $q>$2
  150. file/hotlistmgr.dgi  >HTM|[100]HOTLSMAN.EXE $b>$2
  151. file/.log            TXT
  152. file/.doc            TXT
  153. file/.cfg            TXT
  154. file/.c              TXT
  155. file/.bat            TXT
  156. file/file_id.diz     TXT
  157. file/.jpg            >BMP|DJPEG.EXE -bmp -colors 256 $1 $2
  158. file/.jpe            >BMP|DJPEG.EXE -bmp -colors 256 $1 $2
  159. file/.png            >BMP|[200]JPNG2BMP.EXE $1 $2
  160. file/.wav            |PLANY.EXE $1
  161. file/.au             |PLANY.EXE $1
  162. file/files.bbs       >HTM|BBS2HTML.EXE $1 $2
  163. ;
  164. ;defaultly not distributed APMs:
  165. file/.mpg            >HTM|APM.EXE -h http://www.naf.cz/arachne/apm/mpeg>$2
  166. file/.mpe            >HTM|APM.EXE -h http://www.naf.cz/arachne/apm/mpeg>$2
  167. file/.avi            >HTM|APM.EXE -h http://www.multimediaware.com/qv/qv>$2
  168. file/.mov            >HTM|APM.EXE -h http://www.multimediaware.com/qv/qv>$2
  169. file/.mp1            >HTM|APM.EXE -h http://www.multimediaware.com/qv/qv>$2
  170. file/.mp2            >HTM|APM.EXE -h http://www.multimediaware.com/qv/qv>$2
  171. file/.mp3            >HTM|APM.EXE -h http://www.multimediaware.com/qv/qv>$2
  172. file/ghostscript.dgi >HTM|APM.EXE -h http://www.naf.cz/arachne/apm/gs>$2
  173. file/.ps             >HTM|APM.EXE -h http://www.naf.cz/arachne/apm/gs>$2
  174. ;file/.zip            >TXT|[300]PKUNZIP -v $1>$2
  175. ;file/.arj            >TXT|[300]ARJ l $1>$2
  176. ;file/00index         >HTM|BBS2HTML.EXE $1 $2
  177. ;file/00_index        >HTM|BBS2HTML.EXE $1 $2
  178. ;---------------------------------------------------------------------------
  179. ;Syntax of MIME.CFG (please don't beat me, I'll never do it again !! ;-)
  180. ;--------------------------------------------------------------------------
  181. ;* If command starts '@', it will be executed in text mode and with maximum
  182. ;  memory.
  183. ;* If command starts with [nn] string, it will be executed without
  184. ;  temporary leaving of Arachne if there is [nn] kB available for program.
  185. ;* In command arguments you can use following macros. Instead of $1, $2, etc.
  186. ;  like in Unix scripts you can use %1, %2 like in DOS batch files.
  187. ;  $1 ... full input filename
  188. ;  $2 ... full output filename
  189. ;  $u ... url of document
  190. ;  $p ... host (telnet://cyberspace.org -> cyberspace.org)
  191. ;  $d ... file (ftp://ftp.vse.cz/pub/msdos/Arachne/ -> /pub/msdos/Arachne/)
  192. ;  $q ... file with query string (created only when using this macro)
  193. ;  $s ... CGI compatible query string (max. 80 characters)
  194. ;  $c ... full name of cache index (typicaly CACHE.IDX)
  195. ;  $h ... full name of history file (typicaly HISTORY.LST)
  196. ;  $b ... full name of bookmarks (typicaly HOTLIST.HTM)
  197. ;  $m ... path to mail directory (typicaly MAIL\)
  198. ;  $a ... patch to cache ("archive") (typicaly CACHE\)
  199. ;  $l ... last visited document (filename)
  200. ;  $i ... your ip address
  201. ;  $n ... ip address of 1st nameserver (according to ARACHNE.CFG)
  202. ;  $g ... ip address of 1st gateway (according to ARACHNE.CFG)
  203. ;  $x ... netmask (according to ARACHNE.CFG)
  204. ;  $e ... path to executable files (CORE.EXE, MAILMAN.EXE, etc.)
  205. ;  \n ... end of line (note: this won't work for "|[nn]xx" style commands!)
  206. ;  %% ... % character
  207. ;  $$ ... $ character
  208. ;  \\ ... \ character
  209. ;---------------------------------------------------------------------------
  210. [auto-added]
  211.